import request from '@/utils/request'
import Cookies from 'js-cookie'

// 获取课程列表
export function getCourseList(data) {
  return request({
    url: "/course/getCourseList",
    method: 'get',
    params:data,
  })
}
// 教师详情
export function getTeachers(id) {
  return request({
    url: "/teachers/"+id,
    method: 'get'
  })
}
// 课程详情
export function getCourceChapterDetails(id) {
  return request({
    url: "/course/getCourceChapterDetails/"+id,
    method: 'get',
  })
}
// 课程详情
export function getCourcePaperDetails(id) {
  return request({
    url: "/course/getCourcePaperDetails/"+id,
    method: 'get',
  })
}
// 保存课程练习习题
export function saveCourseExercise(data) {
  return request({
    url: "/exercise/saveCourseExercise",
    method: 'post',
    data:JSON.stringify(data),
  })
}



